//
//  AppDelegate.swift
//  swift微博
//
//  Created by CC on 16/2/26.
//  Copyright © 2016年 CC. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        setupAppearance()
        //1.创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        //2.设置window的根控制器
        let tabBarVC = MainVC()
        window?.rootViewController = tabBarVC
        
        //3.设置为主窗口并显示
        
        window?.makeKeyAndVisible()
        
        
        return true
    }

    /// 设置外观颜色
    func setupAppearance() {
        //appearance全局外观属性
        let item = UIBarButtonItem.appearance()
        item.tintColor = UIColor.orangeColor()
    }


}

